package com.gitee.wsl.mathematics.interpolator

fun interface Interpolate<T> {

    //fun interpolateWith(ratio: Ratio, other: T): T

    fun interpolate(pet : PercentOrRatio):T

    operator fun invoke(pet : PercentOrRatio) = interpolate(pet)

    companion object
}

/**
 * An un-interpolator transforms an object T to a normalized continuous range (0% -> 100%)
 */
typealias UnInterpolatorFun<T> = (T) -> PercentOrRatio

